package edu.gyu.myshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.gyu.myshop.model.*;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ls
 * @since 2024-06-18
 */
public interface UserAddressService extends IService<UserAddress> {
    boolean adminLogin(Myuser myuser, HttpServletRequest request);

    int getUserAll();

    String getLoginUser(HttpServletRequest request);

    int getTodayRegisterUser();

    int getTodayOrder();

    int getOrderAll();

    IPage<OrderDetail> listOrder(int page, int size);

    IPage<OrderDetail> listOrderAll(int page, int size);

    IPage<OrderDetail> listOrderAll_Delivery(int page, int size);

    IPage<OrderDetail> listOrderAll_Receive(int page, int size);

    IPage<OrderDetail> listOrderAll_Complete(int page, int size);


    IPage<Myuser> listUser(int page, int size);

    boolean postAddUser(Myuser myuser, HttpServletRequest request);

    boolean userUpdate(Myuser myuser, HttpServletRequest request);

    OrderDetail getOrderDetail(int id);

    boolean updatePassword(HttpSession session, String oldPassword, String newPassword);
}
